package com.erp.products.productlist.domain;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Category {
    private Integer categoryId;
    private String categoryName;
    private Integer parentId;
    // 用于存储子分类
    private List<Category> children = new ArrayList<>();
}